
import instance from '@/utils/request'
import { getCentsInfolistReq,getmoneybagReq,strEntity,GetStreamDataReq,Get_MemberSettlementList,getMemberBarkInfo,UpdateCertification} from '@/types/reqtypes'
//B端推广人收益明细
export function getCentsInfolist(params: getCentsInfolistReq){
    return instance.post("/getCentsInfolist",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//B端推广人钱包信息
export function getmoneybag(params: getmoneybagReq){
    return instance.post("/getmoneybag",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//B端推广人提现申请
export function Insmember_cents(params: strEntity){
    return instance.post("/Insmember_cents",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//获取钱包流水
export function GetStreamData(params: GetStreamDataReq){
    return instance.post("/GetStreamData",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}

//获取主推广人结算未发放商品明细
export function Get_MemberSettlementList(params: Get_MemberSettlementList){
    return instance.post("/Get_MemberSettlementList",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//获取会员对应银行信息
export function getMemberBarkInfo(params: getMemberBarkInfo){
    return instance.post("/getMemberBarkInfo",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//更新会员对应银行信息
export function UpdateCertification(params: UpdateCertification){
    return instance.post("/UpdateCertification",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
